package cn.mugutu.finance.exception;

import lombok.Data;

/**
 * 系统业务异常
 *
 * @author ganbo
 * @date 2016年7月11日 上午2:33:46
 */
@Data
public class BusinessException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private String code; //异常代码

    public BusinessException(String code, String message) {
        super(message);
        this.code = code;
    }

    public BusinessException() {
        super();
    }

    public BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }


}
